package cn.bisoft.java.bean.entity;

import java.io.Serializable;



/**
 * This is an object that contains data related to the AnteFrontGameMap table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="AnteFrontGameMap"
 */

public abstract class BaseAnteFrontGameMap  implements Serializable {
	private static final long serialVersionUID = 1L;
	public static String REF = "AnteFrontGameMap";
	public static String PROP_FRONT_GAME_ID = "frontGameId";
	public static String PROP_SEQ_NO = "seqNo";
	public static String PROP_GAME_NAME = "gameName";
	public static String PROP_ANTE_GAME_ID = "anteGameId";


	// constructors
	public BaseAnteFrontGameMap () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteFrontGameMap (java.lang.Integer seqNo) {
		this.setSeqNo(seqNo);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteFrontGameMap (
		java.lang.Integer seqNo,
		java.lang.Integer anteGameId,
		java.lang.String frontGameId,
		java.lang.String gameName) {

		this.setSeqNo(seqNo);
		this.setAnteGameId(anteGameId);
		this.setFrontGameId(frontGameId);
		this.setGameName(gameName);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer seqNo;

	// fields
	private java.lang.Integer anteGameId;
	private java.lang.String frontGameId;
	private java.lang.String gameName;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="SeqNo"
     */
	public java.lang.Integer getSeqNo () {
		return seqNo;
	}

	/**
	 * Set the unique identifier of this class
	 * @param seqNo the new ID
	 */
	public void setSeqNo (java.lang.Integer seqNo) {
		this.seqNo = seqNo;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: AnteGameId
	 */
	public java.lang.Integer getAnteGameId () {
		return anteGameId;
	}

	/**
	 * Set the value related to the column: AnteGameId
	 * @param anteGameId the AnteGameId value
	 */
	public void setAnteGameId (java.lang.Integer anteGameId) {
		this.anteGameId = anteGameId;
	}



	/**
	 * Return the value associated with the column: FrontGameId
	 */
	public java.lang.String getFrontGameId () {
		return frontGameId;
	}

	/**
	 * Set the value related to the column: FrontGameId
	 * @param frontGameId the FrontGameId value
	 */
	public void setFrontGameId (java.lang.String frontGameId) {
		this.frontGameId = frontGameId;
	}



	/**
	 * Return the value associated with the column: GameName
	 */
	public java.lang.String getGameName () {
		return gameName;
	}

	/**
	 * Set the value related to the column: GameName
	 * @param gameName the GameName value
	 */
	public void setGameName (java.lang.String gameName) {
		this.gameName = gameName;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof AnteFrontGameMap)) return false;
		else {
			AnteFrontGameMap anteFrontGameMap = (AnteFrontGameMap) obj;
			if (null == this.getSeqNo() || null == anteFrontGameMap.getSeqNo()) return false;
			else return (this.getSeqNo().equals(anteFrontGameMap.getSeqNo()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getSeqNo()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getSeqNo().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}